package com.highspeed.bdk.gateway.entity;

/**
 * 请求包头
 */
public class LuckHeader {

    // 包头
    private char startTag =0xffff ;
    //请求包序列号
    private short reqpacketId ;

    //请求包操作号
    private short OperType;
//保留为
    private char reserved;
    // 消息内容长度
    private int dataLen;
//反馈包序列号
    private short fbpacket;
    //反馈包操作号
    private  short fbOperType;
    public char getStartTag() {
        return startTag;
    }

    public void setStartTag(char startTag) {
        this.startTag = startTag;
    }

    public short getReqpacketId() {
        return reqpacketId;
    }

    public void setReqpacketId(short reqpacketId) {
        this.reqpacketId = reqpacketId;
    }

    public short getOperType() {
        return OperType;
    }

    public void setOperType(short operType) {
        OperType = operType;
    }

    public char getReserved() {
        return reserved;
    }

    public void setReserved(char reserved) {
        this.reserved = reserved;
    }

    public int getDataLen() {
        return dataLen;
    }

    public void setDataLen(int dataLen) {
        this.dataLen = dataLen;
    }

    public short getFbpacket() {
        return fbpacket;
    }

    public void setFbpacket(short fbpacket) {
        this.fbpacket = fbpacket;
    }

    public short getFbOperType() {
        return fbOperType;
    }

    public void setFbOperType(short fbOperType) {
        this.fbOperType = fbOperType;
    }

    public LuckHeader(char startTag, short reqpacketId, short operType, char reserved, int dataLen) {
        this.startTag = startTag;
        this.reqpacketId = reqpacketId;
        this.OperType = operType;
        this.reserved = reserved;
        this.dataLen = dataLen;
    }


    public LuckHeader(char startTag, short reqpacketId, short fbpacket, short fbOperType, int dataLen) {
        this.startTag = startTag;
        this.reqpacketId =reqpacketId;
        this.fbpacket = fbpacket;
        this.fbOperType = fbOperType;
        this.dataLen = dataLen;
    }
}

